package com.yhgm.controller;

import com.yhgm.service.impl.FileServiceImpl;
import com.yhgm.service.impl.ImageSearchServiceImpl;
import com.yhgm.utils.R;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("file_t")
public class FileController {
    @Resource
    private FileServiceImpl fileService;
    @DeleteMapping("deleteById_t")
    public R deleteById(Long id){
        return fileService.deleteById(id);
    }
}
